//package com.xyzh.stj.web.controller;
//
//
//import com.xyzh.stj.web.entity.UserRoleEntity;
//import com.xyzh.stj.web.service.UserRoleService;
//import com.xyzh.stj.web.service.impl.UserRoleServiceImpl;
//import com.xyzh.application.common.util.ResultHelper;
//import com.xyzh.application.config.log.LogRecord;
//import com.xyzh.application.config.log.OperateEnum;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import io.swagger.annotations.Api;
//import com.xyzh.application.base.controller.BasicController;
//
//import java.util.List;
//
///**
// * <p>
// * 用户角色 前端控制器
// * </p>
// *
// * @author @JZB
// * @since 2023-10-29
// */
//@Api(tags = "用户角色模块")
//@RestController
//@RequestMapping("/user-role")
//public class UserRoleController extends BasicController<UserRoleServiceImpl, UserRoleEntity> {
//
//    @Autowired
//    private UserRoleService userRoleService;
//
//    @ApiOperation("添加用户角色")
//    @PostMapping("/addUserRoles/{userId}")
//    @LogRecord(appName = "安居后台", logType = 2, category = "", bizNo = "userinfo", content = "'查询登录用户详情,操作结果编码:'+#r.code+',操作结果:'+#r.message", model = "系统管理-用户管理", operateEnum = OperateEnum.SELECT)
//    public ResultHelper addUserRoles(@PathVariable("userId") String userId, @RequestBody List<String> roles){
//        return ResultHelper.succeed(userRoleService.addUserRoles(userId,roles));
//    }
//}
